#!/usr/bin/bash
#
#"""
#-------------------------------------------------
#   File Name:       ${0}
#   Description:
#   Project Name:    index_es
#   Ide Name:        PyCharm
#   Author:          willis
#   date:            2019/4/26  13:24
#-------------------------------------------------
#   Change Activity:
#                    2019/4/26  13:24:
#-------------------------------------------------
#"""

#set -x
#set -e

#-------------------------------------------------
LOGS(){
    echo "[$(date +%Y%m%d_%H:%M:%S) $$] $*"
}
#-------------------------------------------------

#export ES_HEAP_SIZE=16g

for num in 1;do
        echo "starting node [node-${num}] ..."
        echo "cmd [ES_PATH_CONF=config-node-${num} ./bin/elasticsearch -d -p node-${num}.pid]"
        #ES_JAVA_OPTS="-Xms16g -Xmx16g" ES_PATH_CONF=config-node-${num} ./bin/elasticsearch -d -p node-${num}.pid
        ES_PATH_CONF=config-node-${num} ../bin/elasticsearch -d -p ../node-${num}.pid
done
